import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import axios from "axios";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import TreeTable from "vue-table-with-tree-grid";
import * as filters from "./utils/filter";
import LightTimeline from 'vue-light-timeline'
Vue.config.productionTip = false;

// axios.defaults.baseURL = "http://127.0.0.1:8888/api/private/v1/";
Vue.prototype.$http = axios;
//全局过滤器
Object.keys(filters).forEach(key=>{
	Vue.filter(key,filters[key])
})
// 导入富文本编辑器
import QuillEditor from 'vue-quill-editor'
// require styles 导入富文本编辑器对应的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
// 将富文本编辑器，注册为全局可用的组件
Vue.use(QuillEditor)
Vue.use(ElementUI);
Vue.use(LightTimeline);
Vue.component("tree-table", TreeTable);
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
